package com.example.book.context;

public class BaseContext {
    private static ThreadLocal<String> ThreadLocal = new ThreadLocal<>();

    public static void setCurrentName(String name) {
        ThreadLocal.set(name);
    }

    public static String getCurrentName() {
        return ThreadLocal.get();
    }

    public static void clearCurrentName() {
        ThreadLocal.remove();
    }
}

